package com.uft.model.entity;

import java.io.Serializable;
import java.lang.Integer;
import java.lang.String;

import javax.persistence.*;

/**
 * Entity implementation class for Entity: Preferences
 *
 */
@Entity
@NamedQueries({
	@NamedQuery(
	name = "getPreferencesByName",
	query = "SELECT p FROM Preferences p WHERE p.prefName=:prefName"
	),
	@NamedQuery(
	name = "getPreferencesByCategoryName",
	query = "SELECT p FROM Preferences p WHERE p.prefName=:prefName and p.prefCategory=:category"
	),
	@NamedQuery(
	name = "getDistinctCategoryName",
	query = "SELECT DISTINCT p.prefCategory FROM Preferences p"
	),
	@NamedQuery(
	name = "getPreferencesByCategory",
	query = "SELECT DISTINCT p.prefCategory FROM Preferences p"
	)
	
})
public class Preferences implements Serializable {

	   
	@Id
	@GeneratedValue
	private Integer preferenceId;
	private String prefName;
	private String prefValue;
	private String prefCategory;
	private static final long serialVersionUID = 1L;

	public Preferences() {
		super();
	}   
	public Integer getPreferenceId() {
		return this.preferenceId;
	}

	public void setPreferenceId(Integer preferenceId) {
		this.preferenceId = preferenceId;
	}   
	public String getPrefName() {
		return this.prefName;
	}

	public void setPrefName(String prefName) {
		this.prefName = prefName;
	}   
	public String getPrefValue() {
		return this.prefValue;
	}

	public void setPrefValue(String prefValue) {
		this.prefValue = prefValue;
	}   
	public String getPrefCategory() {
		return this.prefCategory;
	}

	public void setPrefCategory(String prefCategory) {
		this.prefCategory = prefCategory;
	}
   
}
